<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: ly
  Date: 2019/6/20
  Time: 15:09
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>账户列表jsp页面</title>
    <style>
        table {border: 1px solid #000000}
        table th{border: 1px solid #000000}
        table td{border: 1px solid #000000}
    </style>
</head>
<body>
    账户列表: <a href="${pageContext.request.contextPath}/add.do">添加账户</a>
    <table cellpadding="0px" cellspacing="0px" width="80%">
        <tr align="center">
            <th>账户Id</th>
            <th>账户名称</th>
            <th>账户金额</th>
        </tr>
        <c:forEach items="${accountList}" var="account">
            <tr align="center">
                <td>${account.id}</td>
                <td>${account.name}</td>
                <td>${account.money}</td>
            </tr>
        </c:forEach>
    </table>
</body>
</html>
